//
//  MyScrollView.m
//  PigMarket
//
//  Created by 张敬 on 2019/8/12.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MyScrollView.h"

@implementation MyScrollView

- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    UIView *view = [super hitTest:point withEvent:event];
    if ([view.superview isMemberOfClass:NSClassFromString(@"FriendCell")]){
        self.scrollEnabled = NO;
    }else if ([view.superview isMemberOfClass:NSClassFromString(@"ShopCollectionCell")]){
        self.scrollEnabled = NO;

    }else if ([view.superview isMemberOfClass:NSClassFromString(@"QSCollectionCell")]){
        self.scrollEnabled = NO;
        
    }else{
        self.scrollEnabled = YES;
    }
    return view;
}


@end
